<?php
App::uses('CaronasController', 'Controller');

/**
 * TestCaronasController *
 */
class TestCaronasController extends CaronasController {
/**
 * Auto render
 *
 * @var boolean
 */
  public $autoRender = false;

/**
 * Redirect action
 *
 * @param mixed $url
 * @param mixed $status
 * @param boolean $exit
 * @return void
 */
  public function redirect($url, $status = null, $exit = true) {
    $this->redirectUrl = $url;
  }
}

/**
 * CaronasController Test Case
 *
 */
class CaronasControllerTestCase extends CakeTestCase {
/**
 * Fixtures
 *
 * @var array
 */
  public $fixtures = array('app.caronas');

/**
 * setUp method
 *
 * @return void
 */
  public function setUp() {
    parent::setUp();
    $this->Caronases = new TestCaronasesController();
    $this->Caronases->constructClasses();
  }

/**
 * tearDown method
 *
 * @return void
 */
  public function tearDown() {
    unset($this->Caronases);

    parent::tearDown();
  }

}
